cmake_minimum_required(VERSION 2.8)

set(PROG econf)
project(${PROG} CXX)
add_definitions("-Wall -g")
INCLUDE_DIRECTORIES( /usr/local/include )
link_libraries(pthread /usr/local/lib/libzookeeper_mt.a /usr/local/lib/libjsoncpp.a)
AUX_SOURCE_DIRECTORY(./src DIR_SRCS)
ADD_EXECUTABLE(bin/${PROG} ${DIR_SRCS})
install(TARGETS bin/${PROG} DESTINATION /usr/bin/)
